package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.Supplier;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
@RequestMapping("/supplier")
public interface SupplierApi {
    @RequestMapping("/selAll")
    Dto<PageInfo<Supplier>> selAll(@RequestBody Map<String,Object> map);
    @RequestMapping("/delById")
    Dto<Integer> delById(@RequestParam("supplierId")Integer supplierId);
    @RequestMapping("/addsupplier")
    Dto<Integer> add(@RequestBody Supplier supplier);
    @RequestMapping("/updsupplier")
    Dto<Integer> upd(@RequestBody Supplier supplier);
}
